
function bound(obj,obj1){
	
	var red = obj.getBoundingClientRect();			// 在拖动的时候,获取box的位置
	var green = obj1.getBoundingClientRect();				
	if(red.right>=green.left && red.bottom>= green.top && red.top<= green.bottom && red.left<= green.right){
		
		return true;
	}else{
		return false;
	}
	
}